import request from '@/utils/request'

// 查询成就枚举列表
export function listAchievements(query) {
  return request({
    url: '/reminders/Achievements/list',
    method: 'get',
    params: query
  })
}

// 查询成就枚举详细
export function getAchievements(id) {
  return request({
    url: '/reminders/Achievements/' + id,
    method: 'get'
  })
}

// 新增成就枚举
export function addAchievements(data) {
  return request({
    url: '/reminders/Achievements',
    method: 'post',
    data: data
  })
}

// 修改成就枚举
export function updateAchievements(data) {
  return request({
    url: '/reminders/Achievements',
    method: 'put',
    data: data
  })
}

// 删除成就枚举
export function delAchievements(id) {
  return request({
    url: '/reminders/Achievements/' + id,
    method: 'delete'
  })
}
